<template>
  <!-- 具名插槽 -->
  <slot name="actionButton"></slot>

  <el-button @click="goBack">{{ backTitle }}</el-button>
</template>

<script lang='ts' setup>
import { ref } from 'vue'
import allArea from './lib/pca-code.json'

let props = defineProps({
  // 标题名称
  title: {
    type: String,
    default: ''
  },
  // 返回按钮标题名称
  backTitle: {
    type: String,
    default: '返回上一页'
  },
  // 是否显示返回上一页
  isGoBack: {
    type: Boolean,
    default: false
  }
})

let emit = defineEmits(['goBack'])
const goBack = () => {
  emit('goBack')
}
</script>

<style lang='scss' scoped>

</style>